<template>
	<view>
		<navbar :title="$t('financial.list')" background="linear-gradient(90deg, #FF6D1B 0%, #FF8E20 100%)" titleColor="#FFFFFF" backColor="#FFFFFF">
		</navbar>
		<view class="list-details" v-for="(item,index) in buyerinfo" :key="index">
			<view class="list-user" >
				<u-image :src="item.avatar" mode="" width="70rpx" height="70rpx" shape="circle"
				style="margin: 40rpx 22rpx 0rpx 25rpx;"></u-image>
				<view class="list-name" >
					{{item.nickname}}
				</view>
				<view class="list-name" >
					{{$currency + item.money}}
				</view>
				<view class="list-time" >
					{{item.createtime}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				buyerinfo:''
			};
		},
		onLoad(options) {
			 let buyerinfo = JSON.parse(decodeURIComponent(options.buyerinfo));
			 console.log(buyerinfo)
			 this.buyerinfo = buyerinfo 
		}
	}
</script>

<style lang="scss" scoped>
	.list-details{
		.list-user{
			display: flex;
			justify-content: space-between;
			text-align: center;
			align-items: center;
		}
		
	}
	.list-name{
		flex:1;
		text-align: left;
		margin-top: 40rpx;
	}
	.list-time{
		padding-right: 20rpx;
		text-align: right;
		margin-top: 40rpx;
	}
	
	
	
</style>
